package com.ghovos.usermangerpgdemo.config;

import com.ghovos.usermangerpgdemo.common.swagger.BaseSwaggerConfig;
import com.ghovos.usermangerpgdemo.common.swagger.SwaggerProperties;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;


/**
 * @author EdgarLiu(刘凌峰)
 * date: 2022/3/17
 * time: 下午4:29
 * email: EdgarLlf@foxmail.com
 */
@Configuration
@EnableSwagger2WebMvc
public class Swagger2Configure extends BaseSwaggerConfig {

    @Override
    public SwaggerProperties swaggerProperties() {
        return SwaggerProperties.builder()
                .apiBasePackage("com.ghovos.usermangerpgdemo")
                .title("ADMIN管理")
                .description("描述用户管理的常用接口")
                .contactName("EdgarLiu")
                .version("1.0")
                .enableSecurity(false)
                .build();
    }
}
